package com.zzyl.common.core.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReportResult {

    private String code;
    private String msg;
    private Object data;
    private String operationTime;

    public  static ReportResult success(){
        ReportResult result = new ReportResult();
        result.setCode("200");
        result.setMsg("操作成功");
//        result.setOperationTime(LocalDateTime.now().toString());
        return  result;
    }

    public   static ReportResult success(Object data){
        ReportResult result = success();
        result.setData(data);
        return  result;
    }
}
